package com.wanda.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.wanda.dao.OrganizationDAO;
import com.wanda.model.OrganizationModel;
import com.wanda.service.OrganizationService;
@Service
public class OrganizationServiceImpl implements OrganizationService {
	@Autowired	
	       
	private OrganizationDAO  organizationDAO;
	public int addOrganization(OrganizationModel organization) {
		// TODO Auto-generated method stub
		return organizationDAO.addOrganization(organization);
	}

	public List<OrganizationModel> selectOrganizationById(String id) {
		// TODO Auto-generated method stub
		return organizationDAO.selectOrganizationById(id);
	}

	public int deleteOrganization(String id) {
		// TODO Auto-generated method stub
		return organizationDAO.deleteOrganization(id);
	}

	public int updateOrganization(OrganizationModel organization) {
		// TODO Auto-generated method stub
		return organizationDAO.updateOrganization(organization);
	}

	public List<OrganizationModel> selectOrganizationall() {
		// TODO Auto-generated method stub
		return organizationDAO.selectOrganizationall();
	}

}
